package edu.sctu.practice.class01.xuping.practice.test02;

/**
 * Created by Administrator on 2015/10/15.
 * ����ڲ�����Vehicle�е�main()��ʵ����һ����ͨ���߶���
 * ��ͨ������������ʼ��speed,size��ֵ������ͨ����ӡ������
 * ���⣬���ü��٣����ٵķ������ٶȽ��иı䡣
 */
public class Vehicle {
    public int speed;
    public int size;


    public void move() {

    }

    public void setSpeed(int speed) {

    }

    public void speedUp(int speedup) {
         speed = speed + speedup;
         System.out.println(speed);
    }

    public void speedDown(int speeddown) {
         speed = speed-speeddown;
         System.out.println(speed);
    }
}
